package com.study.model.mdao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import com.alibaba.fastjson.JSONObject;
import com.study.model.pojo.Form;
import com.study.model.pojo.FormsDetail;
import com.study.services.FormService;

/**
 * 集客主题详情dao
 * @author 郭星
 *
 */
@Mapper
public interface FormDetailsDAO {
	

	/**
	 * 集客主题详情对应的记录
	 * @return
	 */
	List<FormsDetail> selectAllById(@Param("fordetailsId") int fordetailsId);
	
	/**
	 * 添加表单详情信息，放入html和主题名
	 * @param texts
	 * @param title
	 * @return
	 */
	int addHtml(@Param("texts") String texts,@Param("title") String title);
	
	/**
	 * 查询对应表单详情id的信息
	 * @param forid
	 * @return
	 */
	JSONObject findhtml(Integer forid);
	
}
